# https://starship.rs/config/
# Set 'nord-blue' as custom color palette
palette = 'default'

format = """
[░▒▓](color1)\
$username\
$os\
$hostname\
$localip\
[](bg:color2 fg:color1)\
$directory\
[](fg:color2 bg:color3)\
$git_branch\
$git_status\
[](fg:color3 bg:color4)\
$kubernetes\
$python\
$rust\
$nodejs\
$golang\
$php\
[](fg:color4 bg:color5)\
$time\
[ ](fg:color5)\
$cmd_duration\
\n$character"""

# Define custom colors
# Nord theme
[palettes.default]
color1 = '#A0A9CB'
color2 = '#6C98EF'
color3 = '#394260'
color4 = '#2F374C'
color5 = '#1d2230'

[palettes.nord-purple]
color1 = '#757B9B'
color2 = '#4E65B3'
color3 = '#32343F'
color4 = '#2C2E3A'
color5 = '#191A20'

[palettes.nord-green]
color1 = '#A6CEAB'
color2 = '#73E877'
color3 = '#3B5E40'
color4 = '#304B31'
color5 = '#1E2F20'

[palettes.nord-tan]
color1 = '#CDC7A2'
color2 = '#E8BA74'
color3 = '#5E543B'
color4 = '#4B402F'
color5 = '#2E291D'

[palettes.nord-red]
color1 = '#CCA3A1'
color2 = '#E87478'
color3 = '#5E3E3B'
color4 = '#4B2F2F'
color5 = '#2E1E1D'

[palettes.fire]
color1 = '#CF6A4C'
color2 = '#F9EE98'
color3 = '#3F1612'
color4 = '#300D0D'
color5 = '#1A0707'

[palettes.twilight]
color1 = '#7587a6'
color2 = '#afc4db'
color3 = '#3F1612'
color4 = '#300D0D'
color5 = '#1A0707'

[palettes.greenscreen]
color1 = '#00bb00'
color2 = '#005500'
color3 = '#1A0707'
color4 = '#300D0D'
color5 = '#3F1612'

[directory]
style = "fg:color5 bg:color2"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

[directory.substitutions]
"Documents" = "🗁 "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
"dev" = "⌨"
".config" = "⚙"
".ssh" = "🗝"
".gnupg" = "🔒"
"/etc" = "/⚒"
"/var" = "/🕱"

[aws]
symbol = "  "

[buf]
symbol = " "

[c]
symbol = " "

[character]
error_symbol = " [×](bold red)"
success_symbol = " [╰─λ](bold color2)"

[conda]
symbol = " "

[cmd_duration]
disabled = false
format = "⏱  [$duration]($style)"
style = "fg:color2"
min_time = 1

[dart]
symbol = " "

[docker_context]
symbol = " "

[elixir]
symbol = " "

[elm]
symbol = " "

[fossil_branch]
symbol = " "

[git_branch]
symbol = ""
style = "bg:color3"
format = '[[ $symbol $branch ](fg:color2 bg:color3)]($style)'

[git_status]
style = "bg:color3"
format = '[[($all_status$ahead_behind )](fg:color2 bg:color3)]($style)'

[golang]
symbol = "ﳑ"
style = "bg:color4"
format = '[[ $symbol ($version) ](fg:color2 bg:color4)]($style)'

[guix_shell]
symbol = " "

[haskell]
symbol = " "

[haxe]
symbol = "⌘ "

[hg_branch]
symbol = " "

[hostname]
disabled = false
ssh_only = false
format = "[$hostname ]($style)"
style = "bold bg:color1 fg:color4"
# trim_at = "-"

[localip]
ssh_only = true
format = '[\($localipv4\)]($style)'
style = "bg:color1 fg:color4"
disabled = false

[java]
symbol = " "

[julia]
symbol = " "

[kubernetes]
disabled = false
symbol = "☸ "
#format = '[ $symbol ($user on )($cluster in )$context \($namespace\)](fg:color2 bg:color4)'
format = '[ $symbol ($context) ](fg:color2 bg:color4)'
style = "bg:color4"
detect_folders = ['k8s', 'kubernetes', 'k9s', 'kube*', '.kube']

[lua]
symbol = " "

[memory_usage]
symbol = " "

[meson]
symbol = "喝 "

[nim]
symbol = " "

[nix_shell]
symbol = " "

[nodejs]
symbol = ""
style = "bg:color4"
format = '[[ $symbol ($version) ](fg:color2 bg:color4)]($style)'

[os]
disabled = false
format = "[$symbol]($style)"
style = "bg:color1 fg:color5"

[os.symbols]
Alpaquita = " "
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = " "
Gentoo = " "
HardenedBSD = "ﲊ "
Illumos = " "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
OpenBSD = " "
openSUSE = " "
OracleLinux = " "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
Redox = " "
Solus = "ﴱ "
SUSE = " "
Ubuntu = " "
Unknown = " "
Windows = " "

[package]
symbol = " "

[php]
symbol = ""
style = "bg:color4"
format = '[[ $symbol ($version) ](fg:color2 bg:color4)]($style)'

[pijul_channel]
symbol = "🪺 "

[python]
disabled = false
pyenv_version_name = false
symbol = " "
format = '[ $symbol ($virtualenv) ($version) ](fg:color2 bg:color4)'
style = "bg:color4"

[rlang]
symbol = "ﳒ "

[ruby]
symbol = " "

[rust]
symbol = ""
style = "bg:color4"
format = '[[ $symbol ($version) ](fg:color2 bg:color4)]($style)'

[scala]
symbol = " "

[spack]
symbol = "🅢 "

[time]
disabled = false
# time_format = "%R" # Hour:Minute Format
time_format = "%T"                                    # Hour:Minute Format
style = "bg:color5"
format = '[[  $time ](fg:color1 bg:color5)]($style)'

[username]
format = "[ $user]($style)"
show_always = true
style_root = "bold bg:color1 fg:color4"
style_user = "bg:color1 fg:color4"
